#ifndef NETWORKCREATETASK_H
#define NETWORKCREATETASK_H

/***************************************************
 * mode name:NetworkRunnable
 * brief:多线程创建网络，使用线程池管理
 * @author yxt
 * @created 2025/01/21 10:46:22
 * @imfor ~/bigSystem/closedLoop_regulation/include/NetworkRunnable.h
 * @modify:
 * 		
***************************************************/
#include <QCoreApplication>
#include <QThreadPool>
#include <QRunnable>

#include "NetworkCore.h"
class NetworkCreatTask : public QObject, public QRunnable
{
    Q_OBJECT
private:
    /* data */
public:
    NetworkCreatTask(arma::mat data, NetworkBase* networkCreator, QObject* parent = nullptr);
    ~NetworkCreatTask();
    
    void run() override;
signals:
    void send_singleTrialNetwork(arma::rowvec);

private:
    arma::mat data;
    NetworkBase* networkCreator;

};






#endif
